package com.dly.blog.enums;

import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.Getter;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/14 9:56
 */
@Getter
public enum FileState implements IEnum<Integer> {

    EFFECTIVE("有效", 0),
    LAPSE("失效", 1);


    FileState(String key, Integer value){
        this.key  = key;
        this.value = value;
    }

    private final String key;

    private final Integer value;

    @Override
    public Integer getValue() {
        return value;
    }
}
